package com.web.qualification.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.awt.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author wenzhuo
 * @create 2024-05-08 2024/5/8
 */
@Data
@ToString
public class CustomerQualification implements Serializable {

    public static final String MODULE = "QUALIFICATION";

    @Excel(name = "客户号",width = 15)
    private Integer customerNo;

    @Excel(name = "客户名",width = 15)
    private String customerName;

    @Excel(name = "专业投资机构",width = 20)
    private String professionalInvestor;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期日",width = 15)
    private LocalDate expirationDate;

    @Excel(name = "允许期权交易",width = 15)
    private String allowedOption;

    @Excel(name = "允许预定汇率交易",width = 15)
    private String allowedBookRate;

    @Excel(name = "征信等级",width = 15)
    private String creditRating;

    @Excel(name = "贷款额度",width = 15)
    private BigDecimal loanCeiling;

    @Excel(name = "优惠利率",width = 15)
    private BigDecimal primeRate;

    @Excel(name = "资产等级",width = 15)
    private String assetLevel;

    private Integer pendingNumber;



}
